from collections.abc import Iterable

print(isinstance('abc', Iterable))  # str是否可迭代
print(isinstance([1, 2, 3], Iterable))  # list是否可迭代
print(isinstance(123, Iterable))  # 整数是否可迭代

print('*' * 40)
for i, value in enumerate(['A', 'B', 'C']):
    print(i, value)

print('*' * 40)
for x, y in [(1, 1), (2, 4), (3, 9)]:
    print(x, y)
